using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class WinPanel : BasePanel<WinPanel>
{
    public MyGUIInput inputInfo;
    public MyGUIButton button;
    private void Start()
    {
        button.onClick += () =>
        {
            Time.timeScale = 1.0f;
            //记录数据
            GameDataManager.Instance.AddRankInfo(inputInfo.content.text, GamePanel.Instance.nowScore, GamePanel.Instance.nowTime);

            //返回开始界面
            SceneManager.LoadScene("BeginScene");
        };
        HidePanel();
    }
}
